// source --> https://staluris.ru/wp-content/themes/wr-nitro/assets/woorockets/js/functions.js?ver=86c86d802b2d7225698ffba8471f94a5 var isLocalStorageSupported = function () { var t = "test", e = window.sessionStorage; try { return e.setItem(t, "1"), e.removeItem(t), !0 } catch (t) { return !1 } }; !function (t) { t.WR = t.WR || {}, t.function_rotate_device = {}, t.fn.WR_ImagesLoaded = function (e) { var a = this.find("img").toArray().map(function (t) { return t.src }); if (a.length) { var i = 0; t(a).each(function (t, o) { var s, n, r; s = o, n = function () { ++i == a.length && e() }, (r = new Image).onload = n, r.src = s }) } else e() }, t.fn.WR_ImagesLazyload = function (e, a) { var i, o = t(window), s = e || 0, n = window.devicePixelRatio > 1 ? "data-src-retina" : "data-src-lazyload", r = this; function c() { var e = r.filter(function () { var e = t(this); if (!e.is(":hidden")) { var a = o.scrollTop(), i = a + o.height(), n = e.offset().top; return n + e.height() >= a - s && n <= i + s } }); i = e.trigger("WR_ImagesLazyload"), r = r.not(i) } return this.one("WR_ImagesLazyload", function () { var t = this.getAttribute(n); (t = t || this.getAttribute("data-src-lazyload")) && (this.setAttribute("src", t), "function" == typeof a && a.call(this)) }), o.on("scroll.WR_ImagesLazyload resize.WR_ImagesLazyload lookup.WR_ImagesLazyload", c), c(), this }; var e = function () { return /Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent || navigator.vendor || window.opera) }; function a(t) { if ("string" != typeof t || -1 == t.search("&")) return !1; var e, a, i, o = {}; for (e = t.split("&"), i = 0; i < e.length; i++) o[(a = e[i].split("="))[0]] = decodeURIComponent(a[1]); return o } function i() { var e; t(".hb-cart.sidebar").click(function () { var e = t(this), a = e.find(".cart-control-sidebar"), i = e.find(".hb-minicart")[0].outerHTML; if (t("body > .hb-cart-outer").length || t("body").append('
'), t("body > .hb-cart-outer").html('' + i), !t("body > .overlay-sidebar").length) { var o = t('
').click(function () { !function (e) { e.removeClass("active"); var a = e.attr("data-animation"), i = e.attr("data-position"), o = t(".hb-cart-outer .hb-minicart .widget_shopping_cart_content"), s = (t(".active-icon-cart-sidebar"), t(".hb-cart-outer .hb-minicart")), n = t("body > .wrapper-outer"); e.animate({opacity: 0}, function () { e.hide() }), setTimeout(function () { t(".hb-cart.sidebar .hb-minicart").html(t("body > .hb-cart-outer .hb-minicart").html()).find("input.edit-number").each(function (e, a) { parseInt(t(a).data("value-old")) && t(a).attr("value") != t(a).data("value-old") && t(a).attr("value", t(a).data("value-old")) }), t("body > .hb-cart-outer").remove(), e.remove(), t("html").removeClass("no-scroll"), n.removeAttr("style") }, 500); var r = s[0].getBoundingClientRect(); switch (i) { case"position-sidebar-right": switch (s.animate({right: "-" + r.width + "px"}), "sidebar-push" != a && "sidebar-fall-down" != a && "sidebar-fall-up" != a || n.animate({right: "0px"}), a) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": o.animate({top: "-300px"}); break; case"sidebar-fall-up": o.animate({top: "300px"}) } break; case"position-sidebar-left": switch (s.animate({left: "-" + r.width + "px"}), "sidebar-push" != a && "sidebar-fall-down" != a && "sidebar-fall-up" != a || n.animate({left: "0px"}), a) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": o.animate({top: "-300px"}); break; case"sidebar-fall-up": o.animate({top: "300px"}) } break; case"position-sidebar-top": switch (t(".hb-cart-outer .hb-minicart .action-top-bottom").remove(), "sidebar-slide-in-on-top" != a && "sidebar-push" != a && "sidebar-fall-down" != a || s.animate({top: "-120px"}), "sidebar-push" != a && "sidebar-fall-down" != a && "sidebar-fall-up" != a || n.animate({top: "0px"}), a) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": o.animate({top: "-150px", opacity: 0}); break; case"sidebar-fall-up": s.css("overflow", "hidden").animate({top: "-120px"}, function () { t(this).css("overflow", "") }), o.animate({top: "150px", opacity: 0}) } break; case"position-sidebar-bottom": switch (t(".hb-cart-outer .hb-minicart .action-top-bottom").remove(), "sidebar-slide-in-on-top" != a && "sidebar-push" != a && "sidebar-fall-up" != a || s.animate({bottom: "-120px"}), "sidebar-push" != a && "sidebar-fall-down" != a && "sidebar-fall-up" != a || n.animate({bottom: "0px"}), a) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": s.css("overflow", "hidden").animate({bottom: "-120px"}, function () { t(this).css("overflow", "initial") }), o.animate({top: "-150px", opacity: 0}); break; case"sidebar-fall-up": o.animate({top: "150px", opacity: 0}) } } setTimeout(function () { n.removeAttr("style"), s.removeAttr("style"), t(".hb-cart-outer .hb-minicart").removeAttr("style"), o.removeAttr("style"), e.removeAttr("style") }, 500) }(t(this)) }); t("body").append(o) } t("html").addClass("no-scroll"); var s = a.attr("data-animation"), n = a.attr("data-position"), r = t("body > .overlay-sidebar"), c = t("body > .wrapper-outer"), l = t(".hb-cart-outer .hb-minicart"), d = t(".hb-cart-outer .hb-minicart .widget_shopping_cart_content"); r.addClass("active").attr("data-animation", s).attr("data-position", n), l.attr("style", ""), c.attr("style", ""), r.attr("style", ""), d.attr("style", ""), r.css({display: "block"}).animate({opacity: 1}), l.addClass(n), l.css("opacity", 1); var u = l[0].getBoundingClientRect(), p = function () { var e = t(".hb-cart-outer .widget_shopping_cart_content > .cart_list-outer"), a = t(".hb-cart-outer .hb-minicart").width(), i = e.width(), o = t(".hb-cart-outer .widget_shopping_cart_content > .price-checkout").outerWidth(!0); if (a < i + o) { var s = t(".hb-cart-outer"), n = t(".hb-cart-outer .cart_list-outer"); e = t(".hb-cart-outer .cart_list"); s.addClass("cart-slider"); var r = a - o, c = e.width(), l = parseInt((c - r + 50) / 80) + 1; s.attr("data-items", l), n.width(r), n.prepend('
') } }; switch (n) { case"position-sidebar-right": switch (l.css({ visibility: "visible", right: "-" + u.width + "px" }).animate({right: "0px"}), "sidebar-push" != s && "sidebar-fall-down" != s && "sidebar-fall-up" != s || c.css({ position: "relative", right: "0px" }).animate({right: u.width + "px"}), s) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": d.css({position: "relative", top: "-300px"}).animate({top: "0px"}); break; case"sidebar-fall-up": d.css({position: "relative", top: "300px"}).animate({top: "0px"}) } break; case"position-sidebar-left": switch (l.css({ visibility: "visible", left: "-" + u.width + "px" }).animate({left: "0px"}), "sidebar-push" != s && "sidebar-fall-down" != s && "sidebar-fall-up" != s || c.css({ position: "relative", left: "0px" }).animate({left: u.width + "px"}), s) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": d.css({position: "relative", top: "-300px"}).animate({top: "0px"}); break; case"sidebar-fall-up": d.css({position: "relative", top: "300px"}).animate({top: "0px"}) } break; case"position-sidebar-top": switch (l.addClass("active"), "sidebar-slide-in-on-top" != s && "sidebar-push" != s && "sidebar-fall-down" != s || l.css({ visibility: "visible", transform: "translate(0%, -100%)" }).animate({transform: "translate(0%, 0%)"}), p(), s) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": d.css({position: "relative", top: "-150px", opacity: 0}).animate({top: "0px", opacity: 1}); break; case"sidebar-fall-up": l.css({ overflow: "hidden", visibility: "visible", transform: "translate(0%, -100%)" }).animate({transform: "translate(0%, 0%)"}, function () { t(this).css("overflow", "") }), d.css({position: "relative", top: "150px", opacity: 0}).animate({ top: "0px", opacity: 1 }) } break; case"position-sidebar-bottom": switch ("sidebar-slide-in-on-top" != s && "sidebar-push" != s && "sidebar-fall-up" != s || l.css({ visibility: "visible", transform: "translate(0%, 100%)" }).animate({transform: "translate(0%, 0%)"}), p(), s) { case"sidebar-slide-in-on-top": case"sidebar-push": break; case"sidebar-fall-down": l.css({ overflow: "hidden", visibility: "visible", transform: "translate(0%, 100%)" }).animate({transform: "translate(0%, 0%)"}, function () { l.css("overflow", "") }), d.css({position: "relative", top: "-150px", opacity: 0}).animate({ top: "0px", opacity: 1 }); break; case"sidebar-fall-up": d.css({position: "relative", top: "150px", opacity: 0}).animate({top: "0px", opacity: 1}) } } }), t.fn.hoverIntent && t("body").hoverIntent({ over: function () { var e = t(this), a = e.find(".hb-minicart-outer:first"), i = e.find(".link-cart:first")[0].getBoundingClientRect(); a.removeAttr("style"); var o = a[0].getBoundingClientRect(), s = t(window).width(), n = t(window).height(), r = s > 1024 ? parseInt(WR_Data_Js.offset) : 0; if (s < o.right + 5 + r) { var c = o.right + 5 - s + r; a.css("left", -c + "px") } else o.left < 5 + r && a.css("left", "5px"); e.addClass("active-dropdown"); var l = "empty" == e.attr("data-margin-top") ? e.attr("data-margin-top") : parseInt(e.attr("data-margin-top")); if (e.closest(".sticky-row-scroll").length || "empty" == l) { e[0].getBoundingClientRect(); var d = e.closest(e.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer")[0].getBoundingClientRect(), u = parseInt(d.bottom - i.bottom), p = parseInt(d.bottom - i.top); 0 == e.find(".hover-area").length && e.append(''), a.css("top", p) } else if (l > 0) { 0 == e.find(".hover-area").length && e.append(''); e[0].getBoundingClientRect(); a.css("top", l + i.height) } if ((o = a[0].getBoundingClientRect()).bottom > n) { var h = o.height - (o.bottom - n) - 5; a.css({overflowY: "scroll", height: h}) } }, out: function () { var e = t(this); e.removeClass("active-dropdown"), e.find(".hover-area").remove() }, timeout: 0, sensitivity: 1, interval: 0, selector: ".hb-cart.dropdown" }), t("body").on("click", ".hb-cart-outer.cart-slider .control .prev", function () { var e = t(this), a = e.closest(".hb-cart-outer"), i = parseInt(a.attr("data-items")); if (!(a.attr("data-item") >= i)) { var o = void 0 == a.attr("data-item") ? 1 : parseInt(a.attr("data-item")) + 1, s = a.find(".cart_list"); a.attr("data-item", o), s.css("right", -80 * o), i == o && e.addClass("disabled"), t(".hb-cart-outer.cart-slider .control .next").removeClass("disabled") } }), t("body").on("click", ".hb-cart-outer.cart-slider .control .next", function () { var e = t(this), a = e.closest(".hb-cart-outer"); if (void 0 != a.attr("data-item") && 0 != a.attr("data-item")) { var i = parseInt(a.attr("data-item")) - 1, o = a.find(".cart_list"); a.attr("data-item", i), 0 == i && e.addClass("disabled"), t(".hb-cart-outer.cart-slider .control .prev").removeClass("disabled"), o.css("right", -80 * i) } }), t("body").on("click", ".widget_shopping_cart_content .remove-item .remove", function (e) { e.preventDefault(); var a, i = t(this), o = i.closest(".hb-minicart"), s = i.attr("data-product_id"); function n() { t.ajax({ type: "POST", url: WRAjaxURL, data: {action: "wr_product_remove", cart_item_key: s}, success: function (e) { if (e) { if (e = t.parseJSON(e), o.hasClass("position-sidebar-top") || o.hasClass("position-sidebar-bottom")) { var a = i.closest(".cart-slider"); if (a.length) { var n = parseInt(a.attr("data-items")); a.attr("data-items", n - 1), 1 == n && (a.removeClass("cart-slider"), a.find(".cart_list-outer").removeAttr("style")) } t('li[data-key="' + s + '"]').hide(300, function () { t('li[data-key="' + s + '"]').remove() }) } else t('li[data-key="' + s + '"]').slideUp(300, function () { t('li[data-key="' + s + '"]').remove() }); t(".mini-price").length && t(".mini-price").html(e.price_total), t(".hb-cart .cart-control .count").length && t(".hb-cart .cart-control .count").html(e.count_product), 0 == e.count_product && (t(".hb-minicart .total").length && t(".hb-minicart .total").hide(), t(".hb-minicart .buttons").length && t(".hb-minicart .buttons").hide(), t(".hb-minicart .product_list_widget .empty").length || t(".hb-minicart .product_list_widget").append('
  • ' + e.empty + "
  • ")) } } }) } i.addClass("loading"), a = setTimeout(n, 500), t(document).ajaxComplete(function (t, e, i) { i.url.search("wc-ajax=remove_from_cart") > -1 && (a && clearTimeout(a), n()) }) }), t(document).ajaxComplete(function (e, i, o) { var s = o.url; void 0 !== o.data && o.data; if (-1 != s.search("wc-ajax=add_to_cart")) { if (!isLocalStorageSupported()) return window.location.reload(); if (void 0 != o.data && void 0 != i.responseJSON && void 0 != i.responseJSON.cart_hash) { var n = a(o.data); t.ajax({ type: "POST", url: WRAjaxURL, data: {action: "wr_add_to_cart_message", product_id: n.product_id}, success: function (e) { if (void 0 == e.message) return !1; t("body > .wr-notice-cart-outer").remove(); var a = '
    ' + e.message + "
    "; t("body").append(a); var i = t('').click(function () { t(this).closest(".wr-notice-cart-outer").removeClass("active") }); t("body .wr-notice-cart").prepend(i), setTimeout(function () { t("body > .wr-notice-cart-outer").addClass("active") }, "10"), setTimeout(function () { t("body > .wr-notice-cart-outer").removeClass("active") }, "5000") } }) } else void 0 != o.data && void 0 != i.responseJSON && 1 == i.responseJSON.error && t.ajax({ type: "POST", url: WRAjaxURL, data: {action: "wr_add_to_cart_error"}, success: function (e) { if (void 0 == e.message) return !1; t("body > .wr-notice-cart-outer").remove(); var a = '
    ' + e.message + "
    "; t("body").append(a); var i = t('').click(function () { t(this).closest(".wr-notice-cart-outer").removeClass("active") }); t("body .wr-notice-cart").prepend(i), setTimeout(function () { t("body > .wr-notice-cart-outer").addClass("active") }, "10"), setTimeout(function () { t("body > .wr-notice-cart-outer").removeClass("active") }, "5000") } }) } if (void 0 != o.data && "add_to_wishlist" == (n = a(o.data)).action) { t("body > .wr-notice-cart-outer").remove(); var r = '
    ' + i.responseJSON.message + '
    ' + WR_Data_Js["View Wishlist"] + "
    "; t("body").append(r); var c = t('').click(function () { t(this).closest(".wr-notice-cart-outer").removeClass("active") }); t("body .wr-notice-cart").prepend(c), setTimeout(function () { t("body > .wr-notice-cart-outer").addClass("active") }, "10"), setTimeout(function () { t("body > .wr-notice-cart-outer").removeClass("active") }, "5000") } if (void 0 != o.data) { n = a(o.data); -1 != s.search("wc-ajax=add_to_cart") && void 0 != n.remove_from_wishlist_after_add_to_cart && (t(".woocommerce-message").hide(), setTimeout(function () { t(".wishlist_table tbody tr").length <= 1 && (t(".wishlist_table").remove(), t("#yith-wcwl-form").addClass("empty")) }, 1e3)) } }), t(document.body).on("wc_fragments_loaded wc_fragments_refreshed added_to_cart", function () { if (isLocalStorageSupported() && void 0 !== window.wc_cart_fragments_params && void 0 !== wc_cart_fragments_params.fragment_name) { var e = t.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)); e && void 0 !== e.wr_total_price && void 0 !== e.wr_count_item && (t(".hb-cart .cart-control .count").html(e.wr_count_item), t(".mini-price").html(e.wr_total_price)) } }), t("body").on("blur change", ".widget_shopping_cart_content .edit-number", function () { var a = t(this), i = a.closest(".mini_cart_item"), o = i.attr("data-key"), s = a.val(), n = (a.closest(".hb-minicart").attr("data-slidebar-position"), a.attr("data-max")), r = a.attr("data-value-old"), c = i.find(".multiplication"); c.removeClass("loading"), e && clearTimeout(e), e = setTimeout(function () { if ("" != s && 0 != s && r != s) if (n && parseInt(s) > parseInt(n)) { var e = (e = WR_Data_Js.wr_error_cannot_add).replace(/%d/g, n); a.focus(); a.val(r); alert(e); } else c.addClass("loading"), t.ajax({ type: "POST", url: WR_CART_URL, data: {"wr-action-cart": "update_cart", cart_item_key: o, cart_item_number: s}, success: function (e) { 0 == e.count_product && (t(".hb-minicart .total").length && t(".hb-minicart .total").hide(), t(".hb-minicart .buttons").length && t(".hb-minicart .buttons").hide(), t(".hb-minicart .product_list_widget .empty").length || t(".hb-minicart .product_list_widget").append('
  • ' + e.empty + "
  • ")), t(".mini-price").length && t(".mini-price").html(e.price_total), t(".hb-cart .cart-control .count").length && t(".hb-cart .cart-control .count").html(e.count_product), c.removeClass("loading"), a.attr("data-value-old", s) } }) }, 50) }), ("no" != WR_Data_Js.ajax_add_to_cart_single || parseInt(WR_Data_Js.buy_now_button_enabled)) && (t(window).load(function () { var e, a = document.querySelector("form.cart"); if (a) { e = t._data(a, "events"), t.WR.form_add_to_cart_events = {}; for (var i in e) if (!(["click", "submit"].indexOf(i) < 0)) { t.WR.form_add_to_cart_events[i] = []; for (var o = 0; o < e[i].length; o++) { if ("click" == i) { var s = t(a).find(e[i][o].selector); if (s[0] && "submit" != s[0].type) continue } t.WR.form_add_to_cart_events[i].push({handler: e[i][o].handler, selector: e[i][o].selector}) } o = 0; for (var n = t.WR.form_add_to_cart_events[i].length; o < n; o++) t("form.cart").off(i, t.WR.form_add_to_cart_events[i][o].selector, t.WR.form_add_to_cart_events[i][o].handler) } t("form.cart").on("submit", function (e) { t.WR.form_add_to_cart_processing && e.preventDefault() }) } }), t("body").on("click", ".quickview-modal form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button", function (e) { e.preventDefault(), e.stopPropagation(); var a = t(this); window.wr_add_to_cart_ajax(a, e) }), t("form.cart .wr_single_add_to_cart_ajax, .product-type-subscription .cart .single_add_to_cart_button").click(function (e) { var a = t(this); e.preventDefault(), t.WR.form_add_to_cart_processing ? e.stopPropagation() : (t.WR.form_add_to_cart_processing = !0, "undefined" != typeof yith_wapo_general ? setTimeout(function () { yith_wapo_general.do_submit && window.wr_add_to_cart_ajax(a, e) }, 100) : window.wr_add_to_cart_ajax(a, e)) }), t(".floating-add-to-cart .floating_button").click(function (e) { e.preventDefault(), e.stopPropagation(); t(this); t("form.cart .single_add_to_cart_button").trigger("click") }), window.wr_add_to_cart_ajax = function (e, a, i) { var o = e.closest("form"), s = o.serializeArray(), n = t(".floating-add-to-cart .floating_button"); e.prop("disabled", !0), e.addClass("loading"), e.removeClass("added error"), n.addClass("loading"), n.removeClass("added error"), o.find('input[name="wr-action-cart"]').length || o.append(''); for (var r in t.WR.form_add_to_cart_events) for (var c = 0; c < t.WR.form_add_to_cart_events[r].length; c++) if (t.WR.form_add_to_cart_events[r][c].handler) { var l = e.closest("form"); t.WR.form_add_to_cart_events[r][c].selector && (l = l.find(t.WR.form_add_to_cart_events[r][c].selector)), l.length && t.WR.form_add_to_cart_events[r][c].handler.call(l[0], a) } if (isLocalStorageSupported()) { var d = t("iframe#wr_nitro_add_to_cart_iframe"); d.length || (d = t("', patterns: { youtube: { index: "youtube.com/", id: "v=", src: "//www.youtube.com/embed/%id%?autoplay=1&showinfo=0&" + o }, vimeo: {index: "vimeo.com/", id: "/", src: "//player.vimeo.com/video/%id%?autoplay=1"} } } }) } }), t(".sc-yt-trigger").length > 0 && (t.getScript("https://www.youtube.com/iframe_api"), t(".sc-yt-trigger").each(function () { var e = t(this), a = e.next(); setTimeout(function t() { return "object" != typeof YT ? setTimeout(t, 1e3) : "function" != typeof YT.Player ? setTimeout(t, 1e3) : void new YT.Player(a.get(0), { events: { onReady: function (t) { e.on("click", function (i) { t.target.playVideo(), e.css("opacity", 0), a.show(), i.preventDefault() }) } } }) }, 1e3) })), t(".sc-vm-trigger").length > 0 && t(".sc-vm-trigger").each(function () { var e = t(this), a = e.next(), i = "*"; e.on("click", function (t) { !function (t, e) { var o = {method: t}; e && (o.value = e); var s = JSON.stringify(o); a[0].contentWindow.postMessage(s, i) }("play"), e.css("opacity", 0), a.show(), t.preventDefault() }) })) } function r() { t("body").on("click", ".wc-show-sidebar", function (e) { var a, i; t("body").toggleClass("slide-to-left"), t("html").addClass("no-scroll"), t("#shop-mobile-sidebar").before('
    '), t(this), a = "#shop-mobile-sidebar", i = function () { t("body").removeClass("slide-to-left"), t("html").removeClass("no-scroll"), t(".mask-overlay").remove() }, t(".wrapper-outer").on("mousedown vmousedown", function (e) { -1 == t(a).index(t(e.target).closest(a)) && (t("body").off("mousedown vmousedown"), i.call(e)) }) }) } t.WR.Lightbox = function () { if (void 0 === t.fn.nivoLightbox) return setTimeout(function () { t.WR.Lightbox() }, 100); t('a[data-lightbox^="nivo"]').each(function () { t(this).data("nivo-lightbox-initialized") || (t(this).nivoLightbox({ effect: "fall", keyboardNav: !0, clickOverlayToClose: !0 }), t(this).data("nivo-lightbox-initialized", !0)) }) }, t.WR.Carousel = function () { if (void 0 === t.fn.owlCarousel) return setTimeout(t.WR.Carousel, 100); t(".wr-nitro-carousel").each(function () { var e = t(this); if (!e.data("owl-carousel-initialized")) { if (e.hasClass("exclude-carousel")) return; var a = e.data("owl-options"); if (void 0 !== a) { var i = "true" == a.autoplay, o = a.autoplayTimeout ? a.autoplayTimeout : "5000", s = a.items, n = "true" == a.nav, r = "true" == a.dots, c = "true" == a.autoplayHoverPause, l = a.desktop, d = a.tablet, u = a.mobile, p = a.sm_mobile, h = a.custom_responsive, m = "true" == a.rtl, f = !a.loop || a.loop, v = "true" == a.autoHeight, b = a.animateIn ? a.animateIn : "", g = a.animateOut ? a.animateOut : "", w = { items: 1, autoplay: i, autoplayTimeout: o, autoplayHoverPause: c, nav: n, dots: r, loop: f, autoHeight: v, smartSpeed: 400, navText: ['', ''], rtl: m }; w.items = s, w.responsive = b || v || "1" == s || "true" == h ? { 0: {items: p}, 376: {items: u}, 601: {items: d}, 769: {items: l}, 993: {items: s} } : { 0: {items: u}, 584: {items: d}, 784: {items: s} }, b && (w.animateIn = b), g && (w.animateOut = g), e.owlCarousel(w) } e.data("owl-carousel-initialized", !0) } }) }, t(document).ready(function () { var a, c, l, d, u, p, h, m, f, v, b, g, w; t("body").on("click", ".vc_tta-tab > a", function (t) { t.preventDefault() }), (void 0 == WR_Data_Js || 1 != WR_Data_Js.blogParallax) && 1 != WR_Data_Js.pageParallax && 1 != WR_Data_Js.bodyParallax || e() || window.skrollr && skrollr.init({forceHeight: !1}), t(".open-popup-link").length && t(".addition-product .open-popup-link, .addition-product .price br").remove(), t(".wr-mobile .hb-menu .has-children-mobile").click(function () { var e = t(this), a = e.closest(".item-link-outer"), i = e.closest("li").find(" > ul:first"); a.hasClass("active-submenu") ? (i.stop(!0, !0).slideUp(function () { var a = e.closest(".site-navigator-inner"), i = e.closest(".site-navigator")[0].getBoundingClientRect(), o = t(window).height() - i.top; i.height <= o && a.css("height", "") }), a.removeClass("active-submenu")) : (i.stop(!0, !0).slideDown(function () { var a = e.closest(".site-navigator-inner"), i = a[0].getBoundingClientRect(), o = t(window).height() - i.top; i.height > o && a.height(o) }), a.addClass("active-submenu")) }), t(".wr-mobile .hb-menu .menu-icon-action").click(function () { var e = t(this), a = e.closest(".hb-menu").find(".site-navigator-inner"); e.hasClass("active-menu") ? (a.stop(!0, !0).slideUp(), e.removeClass("active-menu")) : (s(e, ".hb-menu", function (t) { a.stop(!0, !0).slideUp(), e.removeClass("active-menu") }), a.stop(!0, !0).slideDown(function () { var e = a[0].getBoundingClientRect(), i = t(window).height() - e.top; e.height > i && t(this).height(i) }), e.addClass("active-menu")) }), t.function_rotate_device.menu_mobile = function () { t.each(t(".wr-mobile .hb-menu .menu-icon-action.active-menu"), function (e, a) { var i = t(a).closest(".hb-menu").find(".site-navigator-inner"); i.css("height", ""); var o = i[0].getBoundingClientRect(), s = t(window).height() - o.top; o.height > s ? i.height(s) : i.css("height", "") }) }, o(), function () { function e() { switch (t("body > .hb-search-fs .close").attr("data-layout")) { case"full-screen": t("body > .hb-search-fs").fadeOut(300, function () { t("html").removeClass("no-scroll"), t("body > .hb-search-fs").remove(), t("body > .wrapper-outer").removeAttr("style") }); break; case"topbar": var e = t("#wpadminbar"), a = e.length ? e.height() : "0"; t("body > .hb-search-fs").animate({top: a - 80 + "px"}, function () { t(this).remove() }), t("body > .wrapper-outer").animate({top: "0px"}, function () { t(this).removeAttr("style") }) } t(".header .hb-search").find(".open.active-topbar").removeClass("active-topbar") } t(".hb-search .open.show-full-screen").on("click", function () { var a = t(this).parents(".hb-search").find(".hb-search-fs")[0].outerHTML; t("body").append(a); var i = t(this).attr("data-background-style"), o = t(this).attr("data-layout"), s = t("body > .hb-search-fs"); if ("topbar" == o && t(this).hasClass("active-topbar")) e(); else { switch (o) { case"full-screen": s.fadeIn(300), t("html").addClass("no-scroll"); break; case"topbar": var n = t("#wpadminbar"), r = n.length ? n.height() : "0"; t(this).addClass("active-topbar"), s.css({ display: "block", top: r - 80 + "px" }).animate({top: r + "px"}), t("body > .wrapper-outer").css({ position: "relative", top: "0px" }).animate({top: "80px"}) } s.addClass(i + " " + o), s.find(".close").attr("data-layout", o), s.find("form input").focus() } }), t("body").on("click", ".hb-search-fs .close", function () { e() }), t(".header .hb-search.dropdown .open").click(function () { var e = t(this), a = e.closest(".hb-search"), i = a.find(".search-form:first"), o = t(".header .hb-search.dropdown").index(a), n = a[0].getBoundingClientRect(), r = parseInt(a.css("borderTopWidth")), c = parseInt(a.css("borderBottomWidth")); if (t(".header .hb-search.dropdown:not(:eq(" + o + "))").removeClass("active-dropdown"), a.hasClass("active-dropdown")) a.removeClass("active-dropdown"), i.removeClass("set-width"); else { s(e, ".hb-search", function (t) { a.removeClass("active-dropdown"), i.removeClass("set-width") }), i.removeAttr("style"); var l = t(window).width(); i.width() > l - 10 && (i.css("width", l - 10), i.addClass("set-width")), l = t(window).width(); var d = i[0].getBoundingClientRect(), u = (e[0].getBoundingClientRect(), l > 1024 ? parseInt(WR_Data_Js.offset) : 0); if (l < d.right + 5) { var p = d.right + 5 + u - l; i.css("left", -p + "px") } else d.left < 5 + u && i.css("left", "5px"); var h = "empty" == a.attr("data-margin-top") ? a.attr("data-margin-top") : parseInt(a.attr("data-margin-top")); if (e.closest(".sticky-row-scroll").length || "empty" == h) { var m = e.closest(e.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer")[0].getBoundingClientRect(), f = parseInt(m.bottom - n.bottom + (n.height - r)); i.css("top", f) } else h > 0 && i.css("top", h + (n.height - (r + c))); a.addClass("active-dropdown"), a.find(".wrls-form").length && a.find(".cate-search-outer").width(), setTimeout(function () { a.find(".txt-search").focus() }, 300) } }), t(".header .hb-search.expand-width .open").on("click", function (e) { var a = t(this), i = a.closest(".hb-search"), o = i.find(".search-form form"), n = o[0].getBoundingClientRect(), r = n.width, c = a.closest(".header"), l = c.hasClass("vertical-layout"), d = !0; if (i.hasClass("expan-width-active")) o.stop(!0, !0).css({overflow: "hidden"}).animate({width: "0px"}, 200, function () { i.removeClass("expan-width-active"), o.removeAttr("style"); var e = a.closest(".container").find(".hide-expand-search"); e.css("visibility", "").animate({opacity: 1}, 200, function () { e.removeClass("hide-expand-search"), t(this).css("opacity", "") }) }); else { s(a, ".hb-search", function (e) { o.stop(!0, !0).css({overflow: "hidden"}).animate({width: "0px"}, 200, function () { i.removeClass("expan-width-active"), o.removeAttr("style"); var e = a.closest(".container").find(".hide-expand-search"); e.css("visibility", "").animate({opacity: 1}, 200, function () { e.removeClass("hide-expand-search"), t(this).css("opacity", "") }) }) }); var u = a[0].getBoundingClientRect(), p = u.left + u.width / 2, h = document.body.offsetWidth, m = i.outerWidth(); if (l) { var f = i[0].getBoundingClientRect(), v = c[0].getBoundingClientRect(); d = c.hasClass("left-position-vertical") ? !(f.left - v.left - 10 >= n.width) : v.right - f.right - 10 >= n.width } else d = 2 * p < h; if (d) { var b = i.nextUntil(); if (b.length) { var g = 0, w = function () { o.stop(!0, !0).css({ left: m + 5, width: 0, overflow: "hidden", visibility: "initial" }).animate({width: r}, 200, function () { t(this).css("overflow", "") }) }; l ? w() : (b.each(function (e, a) { if (g < r && (t(a).animate({opacity: 0}, 200, function () { t(a).css("visibility", "hidden") }), t(a).addClass("hide-expand-search")), (g += t(a).outerWidth(!0)) > r) return !1 }), setTimeout(w, 200)) } else o.stop(!0, !0).css({ left: m + 5, width: 0, overflow: "hidden", visibility: "initial" }).animate({width: r}, 200, function () { t(this).css("overflow", "") }) } else { var _ = i.prevUntil(); if (_.length) { var y = 0; w = function () { o.stop(!0, !0).css({ right: m + 5, width: 0, overflow: "hidden", visibility: "initial" }).animate({width: r}, 200, function () { t(this).css("overflow", "") }) }, l ? w() : (_.each(function (e, a) { if (y < r && (t(a).animate({opacity: 0}, 200, function () { t(a).css("visibility", "hidden") }), t(a).addClass("hide-expand-search")), (y += t(a).outerWidth(!0)) > r) return !1 }), setTimeout(w, 200)) } else o.stop(!0, !0).css({ right: m + 5, width: 0, overflow: "hidden", visibility: "initial" }).animate({width: r}, 200, function () { t(this).css("overflow", "") }) } i.addClass("expan-width-active"), setTimeout(function () { i.find(".txt-search").focus() }, 300) } }), t(".header .hb-search.boxed .open").on("click", function () { t(this).parents(".hb-search").find('input[type="submit"]').trigger("click") }) }(), i(), t(".hb-sidebar .icon-sidebar").click(function () { t(this).closest(".hb-sidebar").addClass("active"), t("html").addClass("no-scroll") }), t(".hb-sidebar .content-sidebar > .overlay").click(function () { t(this).closest(".hb-sidebar").removeClass("active"), t("html").removeClass("no-scroll") }), function () { if (t("body.wr-desktop").on("click", ".hb-menu .menu-icon-action", function () { var e = t(this), a = e.parents(".hb-menu"); e.find(".wr-burger-scale").addClass("wr-acitve-burger"); var i = a.find(".site-navigator-outer")[0].outerHTML; t("body > .hb-menu-outer").length || t("body").append('
    '), t("body > .hb-menu-outer").html(i), setTimeout(function () { t(".hb-menu-outer .navigator-column").height() < t(".hb-menu-outer .navigator-column-inner").height() && t(".hb-menu-outer").addClass("hb-menu-scroll") }, 500), t("body > .hb-overlay-menu").length || t("body").append('
    '); var o = e.attr("data-layout"), s = e.attr("data-effect"), n = e.attr("data-position"), r = e.attr("data-animation"), c = t("body > .wrapper-outer"), l = t("body > .hb-menu-outer .sidebar-style"), d = (t("body > .hb-menu-outer"), t("body > .hb-menu-outer ul.site-navigator")), u = t("body > .hb-overlay-menu"), p = t("body > .hb-menu-outer .fullscreen-style"); if (t("html").addClass("no-scroll"), "fullscreen" == o) switch (s) { case"none": p.show(); break; case"fade": p.fadeIn(100); break; case"scale": setTimeout(function () { p.addClass("scale-active") }, 100) } else if ("sidebar" == o) { var h = l.innerWidth(); u.attr("data-position", n), u.attr("data-animation", r), u.fadeIn(), l.css("opacity", 1); var m = t("#wpadminbar"); switch (m.length ? l.css("top", m.height() + "px") : l.css("top", "0px"), n) { case"left": switch (l.css({ visibility: "visible", left: "-" + h + "px" }).animate({left: "0px"}), "push" != r && "fall-down" != r && "fall-up" != r || c.css({ position: "relative", left: "0px" }).animate({left: h + "px"}), r) { case"slide-in-on-top": case"push": break; case"fall-down": d.css({position: "relative", top: "-300px"}).animate({top: "0px"}); break; case"fall-up": d.css({position: "relative", top: "300px"}).animate({top: "0px"}) } break; case"right": switch (l.css({ visibility: "visible", right: "-" + h + "px" }).animate({right: "0px"}), "push" != r && "fall-down" != r && "fall-up" != r || c.css({ position: "relative", right: "0px" }).animate({right: h + "px"}), r) { case"slide-in-on-top": case"push": break; case"fall-down": d.css({position: "relative", top: "-300px"}).animate({top: "0px"}); break; case"fall-up": d.css({position: "relative", top: "300px"}).animate({top: "0px"}) } } } }), t("body").on("click", ".fullscreen-style .close", function () { t(".wr-burger-scale").removeClass("wr-acitve-burger"); var e = t(this), a = e.parents(".hb-menu-outer"); switch (e.attr("data-effect")) { case"none": a.remove(); break; case"fade": a.find(".site-navigator-outer").fadeOut(300, function () { a.remove() }); break; case"scale": a.find(".site-navigator-outer").removeClass("scale-active"), setTimeout(function () { a.remove() }, 300) } t("html").removeClass("no-scroll"), t("body > .wrapper-outer").removeAttr("style") }), t("body").on("click", ".hb-overlay-menu", function () { t(".wr-burger-scale").removeClass("wr-acitve-burger"); var e = t(this), a = e.attr("data-position"), i = e.attr("data-animation"), o = t("body > .wrapper-outer"), s = t("body > .hb-menu-outer .sidebar-style"), n = t("body > .hb-menu-outer ul.site-navigator"), r = s.innerWidth(); switch (s.innerHeight(), e.fadeOut(), setTimeout(function () { t("body > .hb-menu-outer").remove(), e.remove(), t("html").removeClass("no-scroll"), t("body > .wrapper-outer").removeAttr("style") }, 500), a) { case"left": switch (s.animate({left: "-" + r + "px"}), "push" != i && "fall-down" != i && "fall-up" != i || o.animate({left: "0px"}), i) { case"slide-in-on-top": case"push": break; case"fall-down": n.animate({top: "-300px"}); break; case"fall-up": n.animate({top: "300px"}) } break; case"right": switch (s.animate({right: "-" + r + "px"}), "push" != i && "fall-down" != i && "fall-up" != i || o.animate({right: "0px"}), i) { case"slide-in-on-top": case"push": break; case"fall-down": n.animate({top: "-300px"}); break; case"fall-up": n.animate({top: "300px"}) } } }), t("body").on("click", ".header .menu-more .icon-more", function (e) { var a = t(this), i = a.closest(".site-navigator-inner"), o = a.closest(".menu-more"), n = i.find(".site-navigator"), r = i.find(".nav-more"), c = i.find(" > .site-navigator .item-hidden"), l = t(".header .menu-more").index(o), d = a.closest(".element-item"); if (t(".header .menu-more:not(:eq(" + l + "))").removeClass("active-more"), o.hasClass("active-more")) o.removeClass("active-more"); else { s(a, ".hb-menu", function (t) { o.removeClass("active-more") }), r.html(""), r.removeAttr("style"); var u = t(window).width(), p = r[0].getBoundingClientRect(), h = u > 1024 ? parseInt(WR_Data_Js.offset) : 0; if (u < p.right + 5) { var m = p.right + 5 + h - u; r.css("left", -m + "px") } else p.left < 5 + h && r.css("left", "5px"); var f = "empty" == d.attr("data-margin-top") ? d.attr("data-margin-top") : parseInt(d.attr("data-margin-top")), v = o[0].getBoundingClientRect(); if (a.closest(".sticky-row-scroll").length || "empty" == f) { var b = a.closest(a.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer")[0].getBoundingClientRect(), g = v.top + v.height, w = b.top + b.height, _ = parseInt(w - g), y = parseInt(_ + v.height); r.css("top", y) } else f > 0 && r.css("top", f + v.height); if (c.length) { var C = ""; t.each(c, function () { C += t(this)[0].outerHTML }), r.html('") } setTimeout(function () { o.addClass("active-more") }, 10) } }), t.fn.hoverIntent) { var e = function (e) { var a = "", i = e[0].getBoundingClientRect(), o = (r = t(window).width()) > 1024 ? parseInt(WR_Data_Js.offset) : 0, s = "empty" == e.closest(".hb-menu").attr("data-margin-top") ? e.closest(".hb-menu").attr("data-margin-top") : parseInt(e.closest(".hb-menu").attr("data-margin-top")); if (e.hasClass("wrmm-item")) { (y = e.find(" > .mm-container-outer")).attr("style", "display:block"); var n = e.closest(".container")[0].getBoundingClientRect(), r = t(window).width(), c = n.width, l = n.right, d = 0, u = 0, p = y.attr("data-width"); "full" === p ? (d = c) + 10 + 2 * o >= r && (d = c - 10, l -= 5) : "full-width" === p ? (d = r - 10 - 2 * o, l = 5 + o) : (d = parseInt(p) ? parseInt(p) : c) + 10 + 2 * o >= r && (d = r - 10 - 2 * o, l -= 5), y.width(d); var h = y[0].getBoundingClientRect(); if (u = "full-width" == p ? -(h.left - l) : "full" == p ? h.right - l > 0 ? -parseInt(h.right - l) : 0 : h.right > r - 5 - 2 * o ? -(h.right - (r - 5 - o)) : 0, a = { display: "block", left: u, width: d }, e.closest(".sticky-row-scroll").length || "empty" == s) { var m = e.closest(e.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer")[0].getBoundingClientRect(), f = i.top + i.height, v = m.top + m.height, b = parseInt(v - f), g = parseInt(b + i.height); a.top = g, 0 == e.children(".hover-area").length && e.append('') } else s > 0 && (a.top = s + i.height, 0 == e.children(".hover-area").length && e.append('')); var w = y.find(".mm-container").width(), _ = 0; t.each(y.find(".mm-container > .mm-col"), function () { var e = t(this), a = e.outerWidth(); _ += a, e.removeClass("mm-last-row"), _ == w ? (e.addClass("mm-last-row"), _ = 0) : _ > w && (e.prev().addClass("mm-last-row"), _ = a) }) } else { var y; if ((y = e.find(" > ul.sub-menu")).attr("style", "display:block"), 0 == y.length) return !1; if (h = y[0].getBoundingClientRect(), r = t(window).width(), u = Math.round(h.right - r + o), e.hasClass("menu-default")) if (u = u > 0 ? -u - 5 : 0, e.closest(".sticky-row-scroll").length || "empty" == s) { m = e.closest(e.closest(".sticky-row-scroll").length ? ".sticky-row" : ".hb-section-outer")[0].getBoundingClientRect(), f = i.top + i.height, v = m.top + m.height, b = parseInt(v - f); var C = parseInt(b + i.height); 0 == e.children(".hover-area").length && e.append('') } else s > 0 && (C = s + i.height, 0 == e.children(".hover-area").length && e.append('')); else { var x = e.closest("ul"); if (parseInt(x.css("left")) < 0) { var k = x[0].getBoundingClientRect(); u = h.width < k.left - o ? -h.width : h.width } else u = 1 == WR_Data_Js.rtl && e.hasClass("menu-item-lv1") ? -h.width : u > 0 ? -h.width : h.width; var R = t(window).height(), I = t("#wpadminbar").length && "fixed" == t("#wpadminbar").css("position") ? t("#wpadminbar").height() : 0, W = R - (h.top + h.height) - o; W = h.height > R - 10 - I - o ? -(h.top - I - 5 - o) : W < 5 ? W - 5 : 0 } a = {display: "block", left: u}, void 0 !== W && (a.top = W), void 0 !== C && (a.top = C) } switch (y.css(a), e.closest(".hb-menu").attr("data-animation")) { case"none": y.css({opacity: "1"}); break; case"fade": y.stop(!0, !0).css({pointerEvents: "none"}).animate({opacity: "1"}, 150, function () { a.pointerEvents = "", y.css(a) }); break; case"left-to-right": u = parseInt(y.css("left")), y.stop(!0, !0).css({ pointerEvents: "none", left: u - 50 + "px" }).animate({opacity: "1", left: u + "px"}, 300, function () { a.pointerEvents = "", y.css(a) }); break; case"right-to-left": u = parseInt(y.css("left")), y.stop(!0, !0).css({ pointerEvents: "none", left: u + 50 + "px" }).animate({opacity: "1", left: u + "px"}, 300, function () { a.pointerEvents = "", y.css(a) }); break; case"bottom-to-top": var T = parseInt(y.css("top")); u = parseInt(y.css("left")), y.stop(!0, !0).css({ pointerEvents: "none", left: u + "px", top: T + 30 + "px" }).animate({opacity: "1", top: T + "px"}, 300, function () { a.pointerEvents = "", y.css(a) }); break; case"scale": u = parseInt(y.css("left")), y.css({ pointerEvents: "none", left: u + "px", transform: "scale(0.8)" }).animate({opacity: "1", transform: "scale(1)"}, 250, function () { a.pointerEvents = "", y.css(a) }) } e.addClass("menu-hover") }; setTimeout(function () { t(".wr-desktop header.header.horizontal-layout .active-menu").each(function () { e(t(this)) }) }, 1e3), t(".wr-desktop header.header.horizontal-layout").hoverIntent({ over: function () { var a = t(this); a.hasClass("active-menu") || e(a) }, out: function () { var e = t(this); if (!e.hasClass("active-menu")) { if (e.children(".hover-area").remove(), e.hasClass("wrmm-item")) var a = e.find(" > .mm-container-outer"); else a = e.find("ul.sub-menu"); switch (e.find(" > .menu-item-link .hover-area").removeAttr("style"), e.closest(".hb-menu").attr("data-animation")) { case"none": e.removeClass("menu-hover"), a.removeAttr("style"); break; case"fade": a.stop(!0, !0).animate({opacity: "0"}, 150, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"left-to-right": var i = parseInt(a.css("left")) - 50; a.stop(!0, !0).animate({opacity: "0", left: i + "px"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"right-to-left": i = parseInt(a.css("left")) + 50, a.stop(!0, !0).animate({ opacity: "0", left: i + "px" }, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"bottom-to-top": var o = parseInt(a.css("top")) + 50; a.stop(!0, !0).animate({opacity: "0", top: o + "px"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"scale": a.stop(!0, !0).animate({opacity: "0", transform: "scale(0.8)"}, 250, function () { e.removeClass("menu-hover"), a.removeAttr("style") }) } } }, timeout: 0, sensitivity: 1, interval: 0, selector: ".site-navigator li.menu-item" }); var a = function (e) { var a = "", i = t(window).width(), o = 0; if (1 == e.closest(".menu-more").length) { var s = e.closest(".menu-more")[0].getBoundingClientRect(), n = i - s.right; s.left > n && (o = 1) } else o = e.closest(".vertical-layout.right-position-vertical").length || e.closest(".sidebar-style.right-position").length; var r = i > 1024 ? parseInt(WR_Data_Js.offset) : 0, c = e[0].getBoundingClientRect(), l = t(window).height(); if (e.hasClass("wrmm-item")) { (f = e.find(" > .mm-container-outer")).attr("style", "display:block"); var d = f.attr("data-width"); if (1 == o) { var u = c.left - r; ("full" == d || d > u) && (d = u - 5), f.width(d); var p = f[0].getBoundingClientRect(), h = t("#wpadminbar").length && "fixed" == t("#wpadminbar").css("position") ? t("#wpadminbar").height() : 0, m = l - (p.top + p.height) - r; m = p.height > l - 10 - h - r ? -(p.top - h - 5 - r) : m < 5 ? m - 5 : 0, a = { display: "block", width: d, left: -d, top: m } } else u = i - c.right - r, ("full" == d || d > u) && (d = u - 5), f.width(d), p = f[0].getBoundingClientRect(), h = t("#wpadminbar").length && "fixed" == t("#wpadminbar").css("position") ? t("#wpadminbar").height() : 0, m = l - (p.top + p.height) - r, m = p.height > l - 10 - h - r ? -(p.top - h - 5 - r) : m < 5 ? m - 5 : 0, a = { display: "block", width: d, left: parseInt(c.width), top: m } } else { var f; if (!(f = e.find(" > ul.sub-menu")).length) return !1; if (f.attr("style", "display:block"), p = f[0].getBoundingClientRect(), e.hasClass("menu-default")) if (1 == o) var v = -parseInt(p.width); else v = parseInt(c.width); else { var b = e.closest("ul"), g = b[0].getBoundingClientRect(); v = p.width > i - g.right - r - 5 ? -p.width : p.width, parseInt(b.css("left")) < 0 && (v = p.width < g.left - 5 - r ? -p.width : p.width) } h = t("#wpadminbar").length && "fixed" == t("#wpadminbar").css("position") ? t("#wpadminbar").height() : 0, m = l - (p.top + p.height) - r, m = p.height > l - 10 - h - r ? -(p.top - h - 5 - r) : m < 5 ? m - 5 : 0, a = { display: "block", left: v, top: m } } var w = 1 == e.closest(".menu-more").length ? e.closest(".element-item").attr("data-animation") : e.closest(".site-navigator-outer").attr("data-effect-vertical"); switch (e.closest(".hb-menu-scroll").length && e.hasClass("menu-item-lv0") && (p.height > l - 10 - 2 * r - h ? a.top = 5 : c.top + p.height > l - 5 - r ? (a.top = c.top - (c.top + p.height - l), a.top -= 2 * r + h + 5) : a.top = c.top - r - h), f.css(a), w) { case"none": f.css({visibility: "visible", opacity: "1"}); break; case"fade": f.stop(!0, !0).animate({opacity: "1"}, 300, function () { f.css(a) }); break; case"left-to-right": v = parseInt(f.css("left")), f.stop(!0, !0).css({left: v - 50 + "px"}).animate({ opacity: "1", left: v + "px" }, 300, function () { f.css(a) }); break; case"right-to-left": v = parseInt(f.css("left")), f.stop(!0, !0).css({left: v + 50 + "px"}).animate({ opacity: "1", left: v + "px" }, 300, function () { f.css(a) }); break; case"bottom-to-top": var _ = parseInt(f.css("top")); v = parseInt(f.css("left")), f.stop(!0, !0).css({ left: v + "px", top: _ + 50 + "px" }).animate({opacity: "1", top: _ + "px"}, 300, function () { f.css(a) }); break; case"scale": f.css({left: v + "px", transform: "scale(0.8)"}).animate({ opacity: "1", transform: "scale(1)" }, 300, function () { f.css(a) }) } e.addClass("menu-hover") }; setTimeout(function () { t(".vertical-layout .text-layout .animation-vertical-normal .active-menu").each(function () { a(t(this)) }) }, 1e3), t("body").hoverIntent({ over: function () { var e = t(this); e.hasClass("active-menu") || a(e) }, out: function () { var e = t(this); if (!e.hasClass("active-menu")) { if (e.hasClass("wrmm-item")) var a = e.find(" > .mm-container-outer"); else a = e.find("ul.sub-menu"); switch (1 == e.closest(".menu-more").length ? e.closest(".element-item").attr("data-animation") : e.closest(".site-navigator-outer").attr("data-effect-vertical")) { case"none": e.removeClass("menu-hover"), a.removeAttr("style"); break; case"fade": a.stop(!0, !0).animate({opacity: "0"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"left-to-right": var i = parseInt(a.css("left")) - 50; a.stop(!0, !0).animate({opacity: "0", left: i + "px"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"right-to-left": i = parseInt(a.css("left")) + 50, a.stop(!0, !0).animate({ opacity: "0", left: i + "px" }, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"bottom-to-top": var o = parseInt(a.css("top")) + 50; a.stop(!0, !0).animate({opacity: "0", top: o + "px"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }); break; case"scale": a.stop(!0, !0).animate({opacity: "0", transform: "scale(0.8)"}, 300, function () { e.removeClass("menu-hover"), a.removeAttr("style") }) } } }, timeout: 1, sensitivity: 6, interval: 0, selector: ".vertical-layout .text-layout .animation-vertical-normal .site-navigator li.menu-item, .hb-menu-outer .sidebar-style.animation-vertical-normal .site-navigator li.menu-item, .menu-more .nav-more .site-navigator li.menu-item" }) } var i = {}; function o(e) { var a = 0; return t.each(e, function () { var e = t(this); if (e.hasClass("hb-menu") && e.hasClass("text-layout")) { var i = e.outerWidth(!0) - e.find(".site-navigator-outer").width() + 47; a += i } else i = e.outerWidth(!0), a += i }), a } function n(e, a, i) { var o = 0, s = 0; if (t.each(e, function () { var e = t(this).outerWidth(!0); o += e }), o < a && (s = a - o), s) { var n = i.prevAll(".hb-flex"); if (n.length) { var r = parseInt(s / n.length); n.width(r), n.addClass("not-flex") } else i.css("marginLeft", s + parseInt(i.css("marginLeft"))) } } function r() { t.each(t(".horizontal-layout .hb-section-outer"), function () { var e = t(this), a = e.find(".hb-menu.text-layout"), i = e.find(".element-item.center-element"), s = e.find(".hb-flex"); if (a.length) if (a.find(".site-navigator > .menu-item").removeClass("item-hidden"), a.find(".menu-more").remove(), e.find(".center-element").removeAttr("style"), s.removeAttr("style"), s.removeClass("not-flex"), i.hasClass("hb-menu") && i.hasClass("text-layout")) { var r = (f = e.find(".hb-section > .container"))[0].getBoundingClientRect().width - (parseInt(f.css("borderLeftWidth")) + parseInt(f.css("borderRightWidth")) + parseInt(f.css("paddingLeft")) + parseInt(f.css("paddingRight"))), l = i.prevAll(':not(".hb-flex")'), d = i.nextAll(':not(".hb-flex")'), u = o(l), p = o(d), h = r - 2 * (u > p ? u : p); i.outerWidth(!0) >= h && c(i, h), c(l, m = parseInt((r - i.outerWidth(!0)) / 2)), c(d, m), n(l, m, i) } else if (i.length) { i.removeAttr("style"), r = (f = e.find(".hb-section > .container"))[0].getBoundingClientRect().width - (parseInt(f.css("borderLeftWidth")) + parseInt(f.css("borderRightWidth")) + parseInt(f.css("paddingLeft")) + parseInt(f.css("paddingRight"))); var m = parseInt((r - i.outerWidth(!0)) / 2); l = i.prevAll(':not(".hb-flex")'), d = i.nextAll(':not(".hb-flex")'), c(l, m), c(d, m), n(l, m, i) } else r = (f = e.find(".hb-section > .container"))[0].getBoundingClientRect().width - (parseInt(f.css("borderLeftWidth")) + parseInt(f.css("borderRightWidth")) + parseInt(f.css("paddingLeft")) + parseInt(f.css("paddingRight"))), c(e.find(".element-item:not(.hb-flex)"), r); else if (i.length) { var f; e.find(".center-element").removeAttr("style"), e.find(".hb-flex").removeAttr("style"), s.removeClass("not-flex"), r = (f = e.find(".hb-section > .container"))[0].getBoundingClientRect().width - (parseInt(f.css("borderLeftWidth")) + parseInt(f.css("borderRightWidth")) + parseInt(f.css("paddingLeft")) + parseInt(f.css("paddingRight"))), m = parseInt((r - i.outerWidth(!0)) / 2), n(l = i.prevAll(':not(".hb-flex")'), m, i) } }) } function c(e, a) { var i = [], o = []; t.each(e, function () { var e = t(this); e.hasClass("hb-menu") && e.hasClass("text-layout") ? i.push(e) : o.push(e) }); var s = i.length; t.each(o, function () { a -= t(this).outerWidth(!0) }); var n = parseInt(a / s), r = 0, c = [], l = 0; t.each(i, function () { var e = t(this).outerWidth(!0); e < n ? r += n - e : c.push(l), l++ }), n += parseInt(r / c.length), t.each(c, function (e, a) { var o = t(i[a]), s = o.find(".site-navigator > .menu-item"); if (s.length) { var r = o.outerWidth(!0), c = o.find(".site-navigator-outer").width(), l = n - (r - c + 52), d = 0, u = !1; t.each(s, function (e, a) { (d += t(this).outerWidth(!0)) >= l && (t(this).addClass("item-hidden"), u = !0) }), u && o.find(".site-navigator-inner").append('') } }) } t("body").on("click", ".mm-container .mm-has-children", function (e) { e.preventDefault(); var a = t(this), i = a.closest("ul"), o = a.closest("li"), s = a.closest(".mm-col"), n = o.find(" > ul"); i.addClass("slide-hide"), n.addClass("slide-show"), s.find(".prev-slide").length || s.find(" > li > ul.sub-menu").prepend('
  • '); var r = a.closest(".mm-col").find(" > li > ul"), c = n.height() + r.find(".prev-slide").outerHeight(); r.height() < c && r.height(c) }), t("body").on("click", ".mm-container .prev-slide", function (e) { var a = t(this), i = a.closest(".mm-col"), o = (a.closest(".mm-container"), i.find(".slide-show:last").removeClass("slide-show"), i.find(".slide-hide:last")); 1 == i.find(".slide-hide").length && (a.closest("ul").css("height", ""), a.remove()), o.removeClass("slide-hide") }), t("body").on("click", ".vertical-layout .hb-menu .animation-vertical-slide .icon-has-children, .hb-menu-outer .animation-vertical-slide .icon-has-children", function (e) { e.preventDefault(); var a = t(this), o = a.closest(".site-navigator-outer"), s = a.closest("li"), n = s.find(" > ul > li"), r = a.closest("ul").find(" > li "), c = Object.keys(i).length + 1, l = a.closest("a").find(".menu_title").text(), d = s.find(s.hasClass("wrmm-item") ? " .mm-container-outer " : " > ul ").height(), u = o.find(".site-navigator"), p = ""; if (d > u.height() && u.attr("style", "height:" + d + "px;"), s.addClass("active-slide").addClass("slide-level-" + c), s.find(" > ul > li.menu-item-has-children").length || s.find(" > ul ").addClass("not-padding-icon"), r.length) { var h = r.length; r.each(function (e, a) { setTimeout(function () { t(a).addClass("slide-left"), h == e + 1 && s.hasClass("wrmm-item") && s.addClass("slide-normal") }, 100 * e) }) } if (n.length && !s.hasClass("wrmm-item") && setTimeout(function () { n.each(function (e, a) { setTimeout(function () { t(a).addClass("slide-normal") }, 100 * e) }) }, 100), i[c] = l, o.find(".menu-breadcrumbs-outer").addClass("show-breadcrumbs"), o.find(".item-breadcrumbs").remove(), Object.keys(i).length && t.each(i, function (t, e) { p += '
    ' + e + "
    " }), o.find(".menu-breadcrumbs").append(p), o.hasClass("fullscreen-style")) { var m = a.closest(".navigator-column-inner")[0].getBoundingClientRect(), f = t(window).width() - m.left; o.find(".menu-breadcrumbs-outer").css("width", parseInt(f)), a.closest(".navigator-column-inner").width(m.width) } }), t("body").on("click", ".vertical-layout .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs, .hb-menu-outer .animation-vertical-slide .menu-breadcrumbs .element-breadcrumbs .title-breadcrumbs", function () { var e = t(this), a = e.attr("data-level"), o = e.closest(".site-navigator-outer"), s = Object.keys(i).length, n = e.closest(".menu-breadcrumbs"); a != s && (o.find(".slide-level-" + s + ".wrmm-item").length ? o.find(".slide-level-" + s + ".wrmm-item").removeClass("slide-normal") : o.find(".slide-level-" + s + "> ul > li").each(function (e, a) { setTimeout(function () { t(a).removeClass("slide-normal") }, 100 * e) }), "all" == a ? setTimeout(function () { var a = o.find(".site-navigator > li").length; o.find(".site-navigator > li").each(function (r, c) { setTimeout(function () { if (t(c).removeClass("slide-left"), a == r + 1) { t(c).closest(".site-navigator").removeAttr("style"), o.find(".slide-normal").removeClass("slide-normal"), o.find(".slide-left").removeClass("slide-left"); for (var l = 1; l <= s; l++) o.find(".slide-level-" + l).removeClass("slide-level-" + l); o.find(".active-slide").removeClass("active-slide"), e.closest(".menu-breadcrumbs-outer").removeClass("show-breadcrumbs"), setTimeout(function () { i = {}, n.find(".item-breadcrumbs").remove() }, 300) } }, 100 * r) }) }, 100) : setTimeout(function () { var e = o.find(".slide-level-" + a + " > ul > li").length; o.find(".slide-level-" + a + " > ul > li").each(function (r, c) { setTimeout(function () { if (t(c).removeClass("slide-left"), e == r + 1) { o.find(".slide-level-" + a + " ul ul .slide-normal").removeClass("slide-normal"), o.find(".slide-level-" + a + " ul ul .slide-left").removeClass("slide-left"); for (var l = a; l <= s; l++) l != a && o.find(".slide-level-" + l).removeClass("slide-level-" + l); for (o.find(".slide-level-" + a + " .active-slide").removeClass("active-slide"), l = a; l <= s; l++) l != a && (delete i[l], n.find('.title-breadcrumbs[data-level="' + l + '"]').parent().remove()) } }, 100 * r) }) }, 100)) }), t("body").on("click", ".vertical-layout .hb-menu .animation-vertical-accordion .icon-has-children, .hb-menu-outer .animation-vertical-accordion .icon-has-children", function (e) { e.preventDefault(); var a = t(this).closest("li"); a.hasClass("active-accordion") ? (a.removeClass("active-accordion"), a.find(" > .mm-container-outer").length ? a.find(" > .mm-container-outer").stop(!0, !0).slideUp(300) : a.find(" > .sub-menu").stop(!0, !0).slideUp(300)) : (a.addClass("active-accordion"), a.find(" > .mm-container-outer").length ? a.find(" > .mm-container-outer").stop(!0, !0).slideDown(300) : a.find(" > .sub-menu").stop(!0, !0).slideDown(300)) }), r(), t(window).resize(_.debounce(function () { r() }, 300)) }(), t(".hb-currency .list .item").click(function () { var e = t(this), a = e.closest("form"), i = a.find(".currency-value"), o = e.attr("data-id"); i.val(o), a.submit() }), function () { var e = [], a = t(".header .site-navigator > li"), i = t("#wpadminbar").outerHeight(); t(".wr-scroll-animated, .wr-scroll-animated *, .menu-item-link").click(function () { if (location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname) { var e = t(this.hash); if (!this.hash.slice(1)) return; var a = t(window).width() > 1024 ? parseInt(WR_Data_Js.offset) : 0; if ((e = e.length ? e : t("[name=" + this.hash.slice(1) + "]")).length) { var o = t(".header .sticky-row"), s = parseInt(o.attr("data-height")); return s || (s = o.height()), t("html,body").stop().animate({scrollTop: e.offset().top - i - a + 1 - s + "px"}, 1200), !1 } } }), t.each(t(".header .site-navigator > li > a"), function () { var a = t(this).attr("href"); if (void 0 != a && null != a.match(/^#/gi)) { var i = t(a); i.length && e.push(i) } }); var o = _.debounce(function () { var o = t(this).scrollTop(); t.each(e, function () { var e = t(this), s = e.offset(), n = e.outerHeight(), r = e.attr("id"), c = t(".header .sticky-normal.sticky-row-scroll").height(); if (o >= s.top - i - c && o <= s.top + n - i - c) { var l = t('.header .site-navigator > li > a[href="#' + r + '"]').closest("li"); return a.removeClass("current-menu-ancestor").removeClass("current-menu-item"), void l.addClass("current-menu-item") } }) }, 10); e.length && t(window).scroll(function () { requestAnimationFrame(o) }) }(), function () { var e = t(".primary-sidebar-sticky"); if (e.length) { var a = t(window), i = t(".primary-sidebar-inner"), o = parseInt(e.css("marginTop")), s = parseInt(i.css("marginTop")), n = t("#wpadminbar"), r = t(".header .sticky-row"), c = r.attr("data-height"), l = n.length ? parseInt(n.height()) : 0, d = (parseInt(e.find(".widget:last").css("marginBottom")), !1), u = !1; 0 == s ? 0 == o && (e.addClass("fixed-margin"), o = 30, u = !0) : (o = 0, d = !0), i.width(i.width()); var p = _.debounce(function () { var n = a.width(); if (n <= 785) e.removeClass("fixed-bottom fixed-top"); else { if (n <= 1008) var p = 0; else p = parseInt(WR_Data_Js.offset); var h = i.height(), m = i.outerHeight(!0), f = e.height(), v = a.height(), b = r.length ? 0 != c ? parseInt(c) : r.height() : 0, g = l + b + o + p; if (h > v - g - p || m >= f) e.removeClass("fixed-bottom fixed-top"); else { var w = t(this).scrollTop(), _ = e.offset(), y = w + v, C = (f = e.height(), _.top + f + (v - h) - g), x = u ? g - o : g; d && (C -= s), i.css("top", x), w > _.top - g && y < C ? (e.hasClass("fixed-bottom") && e.removeClass("fixed-bottom"), e.addClass("fixed-top"), e.addClass("fixing")) : y > C ? (e.hasClass("fixed-top") && e.removeClass("fixed-top"), e.addClass("fixed-bottom"), e.addClass("fixing")) : e.removeClass("fixed-bottom fixed-top fixing") } } }, 10), h = function () { requestAnimationFrame(p) }; t(window).scroll(h), h() } }(), t.WR.Lightbox(), t.WR.Carousel(), t(".wr-nitro-masonry").each(function (e, a) { var i = t(this).data("masonry"); if (void 0 !== i) { var o = i.selector, s = i.columnWidth; t(this).WR_ImagesLoaded(function () { t(a).isotope({percentPosition: !0, itemSelector: o, masonry: {columnWidth: s}}) }) } }), t(".wr-nitro-countdown").each(function (e, a) { var i = t(this).data("time"); if (void 0 !== i) { var o = i.day, s = i.month + "/ " + o + "/ " + i.year + " 00:00:00"; t(a).countdown({ date: s, render: function (e) { t(this.el).html("
    " + this.leadingZeros(e.days, 2) + "" + WR_Data_Js.wr_countdown_days + "
    " + this.leadingZeros(e.hours, 2) + "" + WR_Data_Js.wr_countdown_hrs + "
    " + this.leadingZeros(e.min, 2) + "" + WR_Data_Js.wr_countdown_mins + "
    " + this.leadingZeros(e.sec, 2) + "" + WR_Data_Js.wr_countdown_secs + "
    ") } }) } }), a = t("#wr-back-top"), t(window).scroll(function () { 0 != t(this).scrollTop() ? a.fadeIn() : a.fadeOut() }), a.click(function () { t("body, html").animate({scrollTop: 0}, 800) }), t(".search-results .search-item .entry-content p, .search-results .search-item .entry-title a").each(function (e, a) { var i = t(".search-results .result-list").attr("data-key"), o = t(a).text(), s = i.split(" "); t.each(s, function (e, i) { var s = new RegExp("(" + i + ")", "gi"); o = o.replace(s, '$1'), t(a).html(o) }) }), function () { function e() { t.each(t.function_rotate_device, function (t, e) { e.call() }) } t(window).resize(function () { var a = t(window).height(), i = t(window).width(); void 0 === window.is_vertical_mobile && (window.is_vertical_mobile = a < i), a < i && window.is_vertical_mobile ? (window.is_vertical_mobile = !1, e()) : a > i && !window.is_vertical_mobile && (window.is_vertical_mobile = !0, e()) }) }(), c = t(".gallery-cover"), l = t(".gallery-thumb"), d = !0, !c.length > 0 || (c.owlCarousel({ items: 1, slideSpeed: 2e3, nav: !0, animateOut: "fadeOut", animateIn: "fadeIn", autoplay: !0, dots: !1, loop: !0, navText: ["", ""] }).on("changed.owl.carousel", function (t) { var e = t.item.count - 1, a = Math.round(t.item.index - t.item.count / 2 - .5); a < 0 && (a = e), a > e && (a = 0), l.find(".owl-item").removeClass("current").eq(a).addClass("current"); var i = l.find(".owl-item.active").length - 1, o = l.find(".owl-item.active").first().index(), s = l.find(".owl-item.active").last().index(); a > s && l.data("owl.carousel").to(a, 100, !0), a < o && l.data("owl.carousel").to(a - i, 100, !0) }), l.on("initialized.owl.carousel", function () { l.find(".owl-item").eq(0).addClass("current") }).owlCarousel({ items: 6, dots: !1, nav: !1, smartSpeed: 200, slideSpeed: 500, slideBy: 6, responsiveRefreshRate: 100 }).on("changed.owl.carousel", function (t) { if (d) { var e = t.item.index; c.data("owl.carousel").to(e, 100, !0) } }), l.on("click", ".owl-item", function (e) { e.preventDefault(); var a = t(this).index(); c.data("owl.carousel").to(a, 300, !0) })), function () { if (t(".pagination[layout]").length > 0) { var e = parseInt(t(".pagination").find(".page-ajax.enable").attr("data-page")), a = t(".pagination[layout]").attr("layout"), i = t(".pagination[layout-style]").attr("layout-style"), o = t("." + ("masonry" == i ? "wr-nitro-masonry" : "products")), s = t(".products .product").length, n = t(".page-ajax"), r = t(n).find("a").attr("href"), c = ".products", l = ".page-ajax a", d = (t(l).attr("href"), !1), u = 2, p = function () { o.length && o.WR_ImagesLoaded(function () { "masonry" == i ? o.isotope({ itemSelector: ".product", masonry: {columnWidth: ".grid-sizer"} }) : o.isotope({itemSelector: ".product", layoutMode: "fitRows"}) }) }, h = function () { window.location.href.indexOf("?swoof=1&") > -1 && "function" == typeof woof_get_submit_link && (woof_ajax_page_num = u, r = woof_get_submit_link()); var a = new RegExp("(/page/" + u + "/|&paged=" + u + ")", "i"); r.match(a) || (r += "&paged=" + u), t.get(r, function (a) { var i = t(c, a).wrapInner("").html(), n = t(c, a).find(".product"); if (s += n.length, t(".woocommerce-result-count span").html(s), t(i).WR_ImagesLoaded(function () { t(l, a).attr("href"), o.append(n), o.data("isotope") ? o.isotope("appended", n) : p() }), t(l).text("..."), e > u) { if ("plain" == WR_Data_Js.permalink) var h = r.replace(/paged=+[0-9]+/gi, "paged=" + (u + 1)); else h = r.replace(/page\/+[0-9]+\//gi, "page/" + (u + 1) + "/"); t(l).attr("href", h) } else t(l).removeAttr("href").addClass("disabled"); d = !1, u++ }) }; if ("loadmore" == a) t(".page-ajax a").on("click", function (e) { e.preventDefault(), n = t(".page-ajax"), r = t(n).find("a").attr("href"), c = ".products", t(l = ".page-ajax a").attr("href"), r && (t(l).html(''), h()) }); else if ("infinite" == a) { var m = function () { o = t("." + ("masonry" == i ? "wr-nitro-masonry" : "products")), n = t(".page-ajax"), r = t(n).find("a").attr("href"), c = ".products", t(l = ".page-ajax a").attr("href"); var e = o.offset().top + o.height() - t(window).scrollTop(); if (e < window.innerHeight && e > 0 && !d) { if (!r) return; d = !0, t(l).html(''), h() } }; t(window).scroll(function () { requestAnimationFrame(m) }) } p() } }(), "undefined" != typeof ScrollReveal && (window.sr = ScrollReveal().reveal(".wr-item-animation", {duration: 700})), t(".woof_auto_show").parent().addClass("woof_auto_show_outer"), t("body").on("click", ".yith-wcwl-add-button .add_to_wishlist", function (e) { e.preventDefault(), t(this).css("opacity", "0") }), t("body").on("click", ".wishlist-submit.add_to_wishlist", function (e) { e.preventDefault(), t(this).find(".ajax-loading").show(), t(this).find(".wishlist-icon").hide() }), t("body").on("click", ".yith-wcwl-remove-button a", function (e) { e.preventDefault(); var a = t(this), i = a.closest(".yith-wcwl-add-to-wishlist"), o = i.find(".yith-wcwl-remove-button .ajax-loading"), s = i.find(".yith-wcwl-add-button .add_to_wishlist"); a.css("opacity", "0"), o.css("visibility", "visible"), s.css("opacity", "1"); var n = { action: "wr_remove_product_wishlish", _nonce: _nonce_wr_nitro, product_id: a.attr("data-product-id") }; t.ajax({ type: "POST", url: WRAjaxURL, data: n, success: function (t) { "true" == t.status && (o.css("visibility", "hidden"), i.find(".yith-wcwl-remove-button").hide(), i.find(".yith-wcwl-add-button").show(), a.css("opacity", "1")) } }) }), t(".single-product .product-type-booking").length && t(".woocommerce-message").show(), t("body").delegate(".product__compare .product__btn", "click", function () { return t(this).next().find(".compare").trigger("click"), !1 }), u = function (t) { return parseInt(Number(t)) == t ? t : t.toFixed(2) }, t("body").on("click", ".quantity a.plus", function (e) { var a = t(this).parent().parent().find("input"), i = Number(a.attr("step")), o = Number(a.attr("max")), s = u(Number(a.val()) + i); 0 != o && s > o && (s = o), a.val(s), a.trigger("change") }), t("body").on("click", ".quantity a.minus", function (e) { var a = t(this).parent().parent().find("input"), i = Number(a.attr("step")), o = u(Number(a.val()) - i); o < i && (o = i), a.val(o), a.trigger("change") }), t("body").on("click", ".btn-quickview", function (e) { var a = t(this); a.addClass("loading"); var i = {action: "wr_quickview", product: a.attr("data-prod"), wr_view_image: "wr_quickview"}; t.post(WRAjaxURL, i, function (e) { (e = t(e)).find(".wr-custom-attribute .has-image-gallery[data-value]").each(function () { var e = t(this).attr("data-href") + "&wr_view_image=wr_quickview"; t(this).attr("data-href", e) }), void 0 !== t.fn.magnificPopup && t.magnificPopup.open({ items: {src: e}, mainClass: "mfp-fade mfp-quickview", removalDelay: 300, callbacks: { open: function () { "undefined" != typeof wc_add_to_cart_variation_params && t(".variations_form").each(function () { t(this).wc_variation_form().find(".variations select:eq(0)").change() }) } } }), a.removeClass("loading"), setTimeout(function () { t(".quickview-modal form").hasClass("variations_form") && t(".quickview-modal form.variations_form").wc_variation_form(), t(".wr-images-quickview").WR_ImagesLoaded(function () { var e = t(".wr-images-quickview").outerHeight(); t(".quickview-modal .info").css({height: e, overflow: "auto"}) }) }, 100) }), e.preventDefault(), e.stopPropagation() }), t("body").on("click", ".mfp-quickview .open-popup-link", function (e) { e.preventDefault(), e.stopPropagation(), t(".quickview-modal").addClass("active-sizeguide"), t(".quickview-modal-inner").hide() }), t("body").on("click", ".wr-sizeguide .sizeguide-close", function (e) { t(".quickview-modal").removeClass("active-sizeguide"), t(".quickview-modal-inner").show() }), t("body").on("click", ".product-type-simple .btn-buynow, .wr-buy-now .btn-buynow", function (e) { var a = t(this); a.addClass("loading"); var i = {action: "wr_quickbuy", product_id: a.attr("data-product-id")}; void 0 != a.attr("data-checkout") && void 0 != a.attr("data-payment-info") && (i.shortcode_checkout = a.attr("data-checkout"), i.shortcode_payment = a.attr("data-payment-info")), t.ajax({ type: "POST", url: WRAjaxURL, data: i, success: function (e) { "true" == e.status ? "redirect" == e.type ? window.location.href = e.checkout_url : "modal" == e.type && (-1 != e.checkout_url.indexOf("?") ? e.checkout_url = e.checkout_url + "&wr-buy-now=check-out" : e.checkout_url = e.checkout_url + "?wr-buy-now=check-out", void 0 !== t.fn.magnificPopup && t.magnificPopup.open({ items: {src: e.checkout_url}, type: "iframe", mainClass: "mfp-fade wr-buy-now", removalDelay: 300 })) : e.status, a.removeClass("loading") } }), e.preventDefault(), e.stopPropagation() }), t(".btn-newacc, .register .btn-backacc").on("click", function (e) { t(".form-container.login, .form-container.register").toggleClass("opened") }), t(".btn-lostpw, .lost-password .btn-backacc").on("click", function (e) { t(".form-container.login, .form-container.lost-password").toggleClass("opened") }), t("body").on("click", ".wc-switch a", function (e) { e.preventDefault(); var a = t(this); if (!a.hasClass("active") && !a.hasClass("loading")) { a.closest(".wc-switch").find("a").removeClass("active"), a.addClass("active"); var i = a.attr("data-layout"), o = function (t) { var e = ""; if (-1 != t.indexOf("?")) { var a = "list" == WR_Data_Js.wc_archive_style ? "grid" : WR_Data_Js.wc_archive_style; e = -1 != t.indexOf("switch=" + a) ? t.replace("switch=" + a, "switch=" + i) : -1 != t.indexOf("switch=list") ? t.replace("switch=list", "switch=" + i) : -1 != t.indexOf("?switch=") || -1 != t.indexOf("&switch=") ? (e = t.replace("switch=", "")) + "&switch=" + i : t + "&switch=" + i } else e = t + "?switch=" + i; return e }, s = o(window.location.href); if (history.pushState({}, "", s), t("#shop-main .woocommerce-pagination ul li a.page-numbers").each(function (e, a) { var i = t(this), s = i.attr("href"); i.attr("href", o(s)) }), 1 == t("#shop-main .products").length) a.addClass("loading"), t.get(s, function (e) { var i = t(".products", e); if (i.length) { i.addClass("products-ajax").hide(); var o = i[0].outerHTML, s = t("#shop-main .products"); s.after(o), s.fadeOut(200, function () { t("#shop-main .products-ajax").show() }) } a.removeClass("loading") }); else { var n = t("#shop-main .products." + i + "-layout"); t("#shop-main .products:not(." + i + "-layout)").hide(), n.show() } } }), t("#tab-description").show().closest(".description_tab").addClass("active"), t(".accordion-tabs .tab-heading").click(function (e) { e.preventDefault(); var a = t(this), i = a.closest(".accordion_item"), o = a.closest(".accordion-tabs"); i.hasClass("active") ? (i.removeClass("active"), i.find(".entry-content").stop(!0, !0).slideUp()) : (o.find(".accordion_item").removeClass("active"), i.addClass("active"), o.find(".entry-content").stop(!0, !0).slideUp(), i.find(".entry-content").stop(!0, !0).slideDown()) }), 0 != t(".p-single-action .single_add_to_cart_button").length && t(window).load(function () { var e = t(".footer"), a = t(".p-single-action .single_add_to_cart_button"), i = a.offset().top + a.height(), o = e.height(), s = t(window).height(), n = t(document).height(), r = (t(window).width() > 1024 ? parseInt(WR_Data_Js.offset) : 0) + 10, c = function () { var a = t(window).scrollTop(), c = t(".actions-fixed"), l = e.offset().top - c.height() - 15 - a; a > i ? c.slideDown() : c.slideUp(), a + s < n - o ? c.css({ bottom: r + "px", top: "auto" }) : c.css({bottom: "auto", top: l}) }; t(window).scroll(function () { requestAnimationFrame(c) }), t(".wr_add_to_cart_button i").on("click", function () { if (t(this).parent().hasClass("wr-notice-tooltip")) { var e = t("html, body"), a = t(".variations_form"), i = t("#wpadminbar").length ? t("#wpadminbar").outerHeight() : ""; e.animate({scrollTop: a.offset().top - e.offset().top + e.scrollTop() - i - 20}, 800) } }) }), t(".p-video").length > 0 && (t(".p-video-link").magnificPopup({type: "iframe"}), t(".p-video-file").magnificPopup({type: "inline"})), t(".wr-open-cf7").length > 0 && t(".wr-open-cf7").magnificPopup({ type: "inline", removalDelay: 300, mainClass: "mfp-fade" }), r(), function () { if (t(".term-description").length > 0) { var e = t(".term-description"); e.height() > 78 && (e.wrapInner('
    '), e.append('' + WR_Data_Js.show_more + ""), e.children(".term-description-inner").css({ height: 78, overflow: "hidden" }), t("body").on("click", ".term-more", function () { e.children(".term-description-inner").toggleClass("term-show-hide"), t(this).text() == WR_Data_Js.show_more ? t(this).text(WR_Data_Js.show_less) : t(this).text(WR_Data_Js.show_more) })) } }(), t(".flex-control-thumbs").length > 0 && t(".flex-control-thumbs li").length > 5 && t(".woocommerce-product-gallery__wrapper").WR_ImagesLoaded(function () { setTimeout(function () { t(".flex-control-thumbs").scrollbar() }, 50) }), t(".woocommerce-product-gallery--with-nav").length > 0 && t(".woocommerce-product-gallery--with-nav").flexslider({ animation: "slide", controlNav: !1, animationLoop: !1, slideshow: !1, itemWidth: 90, itemMargin: 10, asNavFor: ".woocommerce-product-gallery--with-images" }), p = t(".nitro-member .member a"), h = t(".nitro-member .info > p").height(), t(".nitro-member.style-2 .info").css("bottom", -(h + 16)), p.mouseenter(function (e) { t(this).find(".name").fadeIn() }), p.mouseleave(function (e) { t(this).find(".name").hide() }), p.mousemove(function (e) { var a = e.pageX, i = e.pageY, o = t(this).offset(), s = a - o.left, n = i - o.top; t(this).find(".name").css({top: n + 20 + "px", left: s - 15 + "px"}) }), p.on("click", function () { var e = t(this), a = e.closest(".member"), i = e.closest(".nitro-member"), o = i.find(".member"), s = o.index(a) + 1, n = o.length, r = i.width(), c = a[0].getBoundingClientRect(), l = parseInt(r / c.width), d = e.next(); if (n <= l) var u = n; else if (s <= l) var u = l - s + s; else n < (u = (parseInt(s / l) + (s % l == 0 ? 0 : 1)) * l) && (u = n); var p = i.find(".member").get(u - 1); if (p = t(p).next(), a.hasClass("active-member")) a.removeClass("active-member"), t(".member-container").slideUp(500, function () { t(this).remove() }); else { o.removeClass("active-member"), a.addClass("active-member"); var h = i.find(".member").get(u - 1); p.hasClass("member-container") ? t(".member-container").fadeOut(300, function () { t(this).html(d.html()), t(this).fadeIn(300) }) : t(".member-container").length ? t(".member-container").slideUp(500, function () { t(this).remove(); var e = i.find(".member").get(u - 1); t(e).after('
    ' + d.html() + "
    "), t(".member-container").slideDown() }) : (t(".member-container").remove(), h = i.find(".member").get(u - 1), t(h).after('
    ' + d.html() + "
    "), t(".member-container").slideDown(500)) } }), (m = t(".galleries .nitro-gallery-masonry")).length && m.each(function () { var e = t(this), a = e.attr("data-layout"); e.WR_ImagesLoaded(function () { "masonry" == a ? e.isotope({ filter: "*", percentPosition: !0, masonry: {columnWidth: ".grid-sizer"} }) : e.isotope({filter: "*", percentPosition: !0, layoutMode: "fitRows"}) }) }), t(".gallery-cat a").click(function () { var e = t(this).attr("data-filter"); t(this).closest(".galleries").find(".nitro-gallery-masonry").isotope({ filter: e, transitionDuration: "0.3s" }) }), t(".gallery-cat").find("a").click(function () { var e = t(this); if (e.hasClass("selected")) return !1; e.parents(".gallery-cat").find(".selected").removeClass("selected"), e.addClass("selected") }), window.innerWidth <= 769 && (t(".filter-on-mobile").on("click", function () { t(this).next().slideToggle() }), t(".gallery-cat a[data-filter]").on("click", function () { var e = t(this).text(); t(this).parent().siblings(".filter-on-mobile").find("span").text(e), t(this).parent().slideToggle() })), f = t('.sc-cat-list[data-expand="true"]').children("a"), t('.sc-cat-list[data-expand="true"] ul').hide(), f.on("click", function () { t(this).next().slideToggle() }), t(".sc-cat-mobile").length > 0 && t(".sc-cat-mobile").on("click", function () { t(this).toggleClass("expanded").next().toggleClass("expanded") }), t(".wr-buy-now .btn-buynow").click(function () { t("body").hasClass("woocommerce-page") || t("body").addClass("woocommerce-page") }), t(".nitro-separator").each(function () { var e = t(this).find("span").width(); switch (t(this).attr("data-align")) { case"left": t("body").hasClass("rtl") ? t(this).find(".sep").css("margin-right", e + 20) : t(this).find(".sep").css("margin-left", e + 20); break; case"right": t("body").hasClass("rtl") ? t(this).find(".sep").css("margin-left", e + 20) : t(this).find(".sep").css("margin-right", e + 20); break; case"center": var a = (t(this).width() - e) / 2 - 20; t(this).find(".sep-left, .sep-right").css("width", a) } }), n(), v = t(".nitro-timeline.style-2"), b = function () { v.removeClass("style-2").addClass("style-1"), t(window).width() < 568 ? v.removeClass("style-2").addClass("style-1") : v.removeClass("style-1").addClass("style-2") }, v.length > 0 && (b(), t(window).resize(function () { b() })), (g = function () { t.each(t(".list-blog.has-featured-img .has-post-thumbnail .entry-title"), function () { var e = t(this), a = e.closest(".has-post-thumbnail"); a.removeClass("blog-res"), e.width() < 180 && a.addClass("blog-res") }) })(), t(window).resize(function () { g() }), t(".product-categories .cat-parent > .children").before(''), e() && t(".wr-mobile .widget_nav_menu .menu-item-has-children > .sub-menu").before(''), t("body").on("click", ".product-categories .cat-parent .fa", function () { t(this).closest(".cat-parent").toggleClass("active").find("> .children").stop(!0, !1).slideToggle() }), t("body").on("click", ".widget_nav_menu .menu-item-has-children .fa", function () { t(this).closest(".menu-item-has-children").toggleClass("active").find("> .sub-menu").stop(!0, !1).slideToggle() }), t(".product-categories .count").each(function () { var e = t(this), a = e.text().replace("(", "").replace(")", ""); e.text(a) }), (w = t(".pageloader")).length && (t(window).on("pageshow", function (t) { void 0 != t.originalEvent && t.originalEvent.persisted && (w.hide(), w.children().hide()) }), t(window).on("beforeunload", function () { w.fadeIn(300, function () { w.children().fadeIn(300) }) }), w.fadeOut(800), w.children().fadeOut("slow")) }), t(window).load(function () { !function () { var e = t(".wr-nitro-horizontal"); if (e.length > 0) { var a = e.data("owl-options"); if (void 0 !== a) { var i = "true" == a.autoplay, o = "true" == a.dots, s = (a.loop, "true" == a.mousewheel); e.owlCarousel({ items: 4, loop: !0, nav: !1, autoplay: i, dots: o, autoWidth: !0 }), 1 == s && e.on("mousewheel", ".owl-stage", function (t) { t.deltaY > 0 ? e.trigger("prev.owl") : e.trigger("next.owl"), t.preventDefault() }) } } }() }) }(jQuery); // source --> https://staluris.ru/wp-content/themes/wr-nitro-child/node_modules/owl.carousel/dist/owl.carousel.min.js?ver=86c86d802b2d7225698ffba8471f94a5 /** * Owl Carousel v2.3.4 * Copyright 2013-2018 David Deutsch * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE */ !function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("
    ",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&bi-g-f&&b",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a":return d?ac;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='
    ',d=k.lazyLoad?a("
    ",{class:"owl-video-tn "+j,srcType:c}):a("
    ",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("
    ",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a(''),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('
    ').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1, animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('
    '+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
    ")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("
    ").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
    ");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()}); // source --> https://staluris.ru/wp-content/themes/wr-nitro/assets/3rd-party/jquery-animation/jquery-animation.min.js?ver=86c86d802b2d7225698ffba8471f94a5 (function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:6,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn)}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector})}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut})}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.sqrt((pX-cX)*(pX-cX)+(pY-cY)*(pY-cY))1?a[1]:a[0];break;case $+"X":l[2]=s.tan(u(a));break;case $+"Y":l[1]=s.tan(u(a));break;case z:a=a.split(","),l[0]=a[0],l[1]=a[1],l[2]=a[2],l[3]=a[3],l[4]=parseInt(a[4],10),l[5]=parseInt(a[5],10)}f[0]=p[0]*l[0]+p[2]*l[1],f[1]=p[1]*l[0]+p[3]*l[1],f[2]=p[0]*l[2]+p[2]*l[3],f[3]=p[1]*l[2]+p[3]*l[3],f[4]=p[0]*l[4]+p[2]*l[5]+p[4],f[5]=p[1]*l[4]+p[3]*l[5]+p[5],p=[f[0],f[1],f[2],f[3],f[4],f[5]]}return f}function i(t){var e,r,n,a=t[0],i=t[1],o=t[2],c=t[3];return a*c-i*o?(e=s.sqrt(a*a+i*i),a/=e,i/=e,n=a*o+i*c,o-=a*n,c-=i*n,r=s.sqrt(o*o+c*c),o/=r,c/=r,n/=r,i*o>a*c&&(a=-a,i=-i,n=-n,e=-e)):e=r=n=0,[[Y,[+t[4],+t[5]]],[j,s.atan2(i,a)],[$+"X",s.atan(n)],[H,[e,r]]]}function o(e,r){var s,n,o,u,m={start:[],end:[]},x=-1;if(("none"==e||p(e))&&(e=""),("none"==r||p(r))&&(r=""),e&&r&&!r.indexOf("matrix")&&g(e).join()==g(r.split(")")[0]).join()&&(m.origin=e,e="",r=r.slice(r.indexOf(")")+1)),e||r){if(e&&r&&l(e)!=l(r))m.start=i(a(e)),m.end=i(a(r));else for(e&&(e=e.split(")"))&&(s=e.length),r&&(r=r.split(")"))&&(s=r.length);++x1?e[1]:t==H?r||e[0]:s+"")]:[s,s];break;case $+"X":case $+"Y":case j:e=e?u(e):0;break;case z:return i(e?g(e):[1,0,0,1,0,0])}return[[n,e]]}function p(t){return v.test(t)}function l(t){return t.replace(/(?:\([^)]*\))|\s/g,"")}function f(t,e,r){for(;r=e.shift();)t.push(r)}function u(t){return~t.indexOf("deg")?parseInt(t,10)*(2*s.PI/360):~t.indexOf("grad")?parseInt(t,10)*(s.PI/200):parseFloat(t)}function g(t){return t=/([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(t),[t[1],t[2],t[3],t[4],t[5],t[6]]}for(var m,x,d,k,h=r.createElement("div"),y=h.style,b="Transform",I=["O"+b,"ms"+b,"Webkit"+b,"Moz"+b],M=I.length,O=("Float32Array"in e),X=/Matrix([^)]*)/,v=/^\s*matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*(?:,\s*0(?:px)?\s*){2}\)\s*$/,w="transform",F="transformOrigin",Y="translate",j="rotate",H="scale",$="skew",z="matrix";M--;)I[M]in y&&(t.support[w]=m=I[M],t.support[F]=m+"Origin");m||(t.support.matrixFilter=x=""===y.filter),t.cssNumber[w]=t.cssNumber[F]=!0,m&&m!=w?(t.cssProps[w]=m,t.cssProps[F]=m+"Origin",m=="Moz"+b?d={get:function(e,r){return r?t.css(e,m).split("px").join(""):e.style[m]},set:function(t,e){t.style[m]=/matrix\([^)p]*\)/.test(e)?e.replace(/matrix((?:[^,]*,){4})([^,]*),([^)]*)/,z+"$1$2px,$3px"):e}}:/^1\.[0-5](?:\.|$)/.test(t.fn.jquery)&&(d={get:function(e,r){return r?t.css(e,m.replace(/^ms/,"Ms")):e.style[m]}})):x&&(d={get:function(e,r,s){var a,i,o=r&&e.currentStyle?e.currentStyle:e.style;return o&&X.test(o.filter)?(a=RegExp.$1.split(","),a=[a[0].split("=")[1],a[2].split("=")[1],a[1].split("=")[1],a[3].split("=")[1]]):a=[1,0,0,1],t.cssHooks[F]?(i=t._data(e,"transformTranslate",n),a[4]=i?i[0]:0,a[5]=i?i[1]:0):(a[4]=o?parseInt(o.left,10)||0:0,a[5]=o?parseInt(o.top,10)||0:0),s?a:z+"("+a+")"},set:function(e,r,s){var n,i,o,c,p=e.style;s||(p.zoom=1),r=a(r),i=["Matrix(M11="+r[0],"M12="+r[2],"M21="+r[1],"M22="+r[3],"SizingMethod='auto expand'"].join(),o=(n=e.currentStyle)&&n.filter||p.filter||"",p.filter=X.test(o)?o.replace(X,i):o+" progid:DXImageTransform.Microsoft."+i+")",t.cssHooks[F]?t.cssHooks[F].set(e,r):((c=t.transform.centerOrigin)&&(p["margin"==c?"marginLeft":"left"]=-(e.offsetWidth/2)+e.clientWidth/2+"px",p["margin"==c?"marginTop":"top"]=-(e.offsetHeight/2)+e.clientHeight/2+"px"),p.left=r[4]+"px",p.top=r[5]+"px")}}),d&&(t.cssHooks[w]=d),k=d&&d.get||t.css,t.fx.step.transform=function(e){var r,n,a,i,c=e.elem,p=e.start,l=e.end,f=e.pos,u="",g=1e5;for(p&&"string"!=typeof p||(p||(p=k(c,m)),x&&(c.style.zoom=1),l=l.split("+=").join(p),t.extend(e,o(p,l)),p=e.start,l=e.end),r=p.length;r--;)switch(n=p[r],a=l[r],i=0,n[0]){case Y:i="px";case H:i||(i=""),u=n[0]+"("+s.round((n[1][0]+(a[1][0]-n[1][0])*f)*g)/g+i+","+s.round((n[1][1]+(a[1][1]-n[1][1])*f)*g)/g+i+")"+u;break;case $+"X":case $+"Y":case j:u=n[0]+"("+s.round((n[1]+(a[1]-n[1])*f)*g)/g+"rad)"+u}e.origin&&(u=e.origin+u),d&&d.set?d.set(c,u,1):c.style[m]=u},t.transform={centerOrigin:"margin"}}(jQuery,window,document,Math);